Pozadí "Oblemování" dialogového okna s texturovanou výplní.
|
Další pozadí Poloprůhledný objekt jen tak na ozdobu ;)
|
HUD pozadí Pěkné HUD pozadí, používané např. jako hint.
|
Obrázek Prostě obrázek, třeba tenhle ;)
|
Tlačítko Co k tomu říct?
|
Aktivní text Funguje naprosto stejně jako tlačítko, ale vypadá jako text.
|
Slider (vertikální) Posuvník neboli jezdec, tento svislý.
|
Slider (horizontální) Posuvník neboli jezdec, vodorovný.
|
ComboBox Rolovací nabídka pro výběr údajů.
|
ListBox To stejné jako ComboBox, jenom to není rolovací.
|
EditBox Kolonka, kam může uživatel vepisovat údaje.
|
Titulek okna Tabulka pro nadpis dialogového okna.
|
Text Docela obyčejný psaný text...
|
|
|
Obrázky objektů fungují jako odkazy na příslušnou definici.
POZOR! Následující kód není definice kompletního dialogu, ale jen jednotlivých objektů!!!
// OTEXTUROVANÉ POZADÍ S RÁMEČKEM
class RscBackground
{
type = 0;
IDC = -1;
style = 80;
x = 0.150000;
y = 0.150000;
w = 0.700000;
h = 0.700000;
text = "";
ColorBackground[] = {1,1,1,1};
ColorText[] = {0,0,0,0};
font = "tahomaB24";
SizeEx = 0;
};
// DALŠÍ POZADÍ, ALE JEDNOBAREVNÉ A BEZ RÁMEČKU
class RscGroupBox
{
type = 0;
IDC = -1;
style = 96;
x = 0.150000;
y = 0.150000;
w = 0.700000;
h = 0.700000;
text = "";
ColorBackground[] = {0,0,0,0};
ColorText[] = {0,0,0,0};
font = "tahomaB24";
SizeEx = 0.020000;
};
// HUD POZADÍ
class RscHUDBackground
{
type = 0;
IDC = -1;
style = 128;
x = 0.150000;
y = 0.150000;
w = 0.700000;
h = 0.700000;
text="";
ColorBackground[]={1,1,1,1};
ColorText[]={0,0,0,0};
font="tahomaB24";
SizeEx = 0;
};
// OBRÁZEK
class RscPicture
{
type = 0;
IDC = -1
style = 48;
x = 0.580000;
y = 0.610000;
w = 0.107500;
h = 0.115000;
text = "Obrazek.jpg";
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
font = "tahomaB24";
SizeEx = 0;
};
// TLAČÍTKO
class RscButton
{
type = 1;
IDC = -1;
style = 2;
x = 0.150000;
y = 0.150000;
w = 0.110000;
h = 0.050000;
text = "";
ColorText[] = {1,1,1,1};
font = "tahomaB36";
SizeEx = 0.020000;
default = 0;
action = "";
SoundPush[] = {"ui\ui_ok",0.200000,1};
SoundClick[] = {"",0.200000,1};
SoundEscape[] = {"ui\ui_cc",0.200000,1};
};
// AKTIVNÍ TEXT
class RscActiveText
{
type = 11;
IDC = -1;
style = 0;
x = 0.150000;
y = 0.150000;
w = 0.110000;
h = 0.050000;
text = "";
color[] = {0,0,0,1};
ColorActive[] = {1,1,1,1};
font = "tahomaB36";
SizeEx = 0.020000;
default = 0;
action = "";
SoundEnter[] = {"ui\ui_over",0.200000,1};
SoundPush[] = {"ui\ui_ok",0.200000,1};
SoundClick[] = {"",0.200000,1};
SoundEscape[] = {"ui\ui_cc",0.200000,1};
};
// VERTIKÁLNÍ JEZDEC
class RscSliderV
{
type = 3;
IDC = -1;
style = 0;
x = 0.150000;
y = 0.150000;
w = 0.021000;
h = 0.100000;
color[] = {1,1,1,1};
};
// HORIZONTÁLNÍ JEZDEC
class RscSliderH
{
type = 3;
IDC = -1;
style = 1;
x = 0.150000;
y = 0.150000;
w = 0.100000;
h = 0.021000;
color[] = {1,1,1,1};
};
// COMBOBOX - ROLOVACÍ NABÍDKA
class RscCombo
{
type = 4;
IDC = -1;
style = 32 + 2;
x = 0.320000;
y = 0.620000;
w = 0.250000;
h = 0.025000;
WholeHeight = 0.250000;
RowHeight = 0.025000;
colorSelect[] = {0.350000,0.380000,0.360000,1};
ColorText[] = {0.080000,0.080000,0.120000,0.750000};
ColorBackground[] = {0.350000,0.380000,0.360000,0.750000};
font = "tahomaB24";
SizeEx = 0.020000;
};
// LISTBOX - NABÍDKA
class RscListBox
{
type = 5;
IDC = -1;
style = 0;
x = 0.320000;
y = 0.620000;
w = 0.250000;
h = 0.025000;
RowHeight = 0.025000;
colorSelect[] = {0.350000,0.380000,0.360000,1};
ColorText[] = {0.080000,0.080000,0.120000,0.750000};
font = "tahomaB24";
};
// PROSTOR, DO KTERÉHO MŮŽE UŽIVATEL PSÁT
class RscEdit
{
type = 2;
IDC = -1;
style = 0;
x = 0.150000;
y = 0.150000;
w = 0.700000;
h = 0.032000;
text = "";
ColorBackground[] = {0,0,0.5,1};
ColorText[] = {1,1,1,1};
ColorSelection[] = {1,1,1,0.250000};
font = "tahomaB24";
SizeEx = 0.020000;
AutoComplete = "";
};
// NADPIS OKNA DIALOGU
class RscTitle
{
type = 0;
IDC = -1;
style = 32 + 2;
x = 0.150000;
y = 0.164000;
w = 0.700000;
h = 0.060000;
text = "";
ColorBackground[] = {1,1,0,1};
ColorText[] = {1,1,1,1};
font = "tahomaB36";
SizeEx = "1.0714 * 0.03";
};
// TEXT
class RscText
{
type = 0;
IDC = -1;
style = 2 + 16 + 512;
x = 0.150000;
y = 0.150000;
w = 0.700000;
h = 0.700000;
text = "";
LineSpacing = 1.000000;
h = 0.040000;
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
font = "garamond64";
SizeEx = 0.020000;
};